<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.prime.com.tr/ui"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:cc="http://java.sun.com/jsf/composite">
	
	
	
	    <cc:interface>
        </cc:interface>
	
	
	<cc:implementation>
	

 <div style="width:290px">

                   
                   
                   <h:panelGrid columns="2">
 				    <h:column><div style="width:80px"><h:outputText for="senhaAtual"   value="Senha Atual: "  /></div></h:column>
				    <h:column>	
				    <h:inputSecret  
				            style="width:170px;"
				            id="senhaAtual"
							value="#{profissionalMBean.senhaAtual}"
							required="true"
							requiredMessage="O campo 'Senha Atual' é obrigatório!"
							maxlength="45"
						/>
					</h:column>
 				    <h:column><div style="width:80px"><h:outputText for="novaSenha"   value="Nova Senha: "  /></div></h:column>
				    <h:column>	
				    <h:inputSecret  
				            style="width:170px;"
				            id="novaSenha"
							value="#{profissionalMBean.novaSenha}"
							required="true"
							requiredMessage="O campo 'Nova Senha' é obrigatório!"
							maxlength="45"
						/>
					</h:column>		
 				    <h:column><div style="width:80px"><h:outputText for="confirmeSenha"   value="Confirme Nova Senha: "  /></div></h:column>
				    <h:column>	
				    <h:inputSecret  
				            style="width:170px;"
				            id="confirmeSenha"
							value="#{profissionalMBean.reNovaSenha}"
							required="true"
							requiredMessage="O campo 'Confirme Nova Senha' é obrigatório!"
							maxlength="45"
						/>
					</h:column>										
					</h:panelGrid>	
					
				
	
	
                <h:panelGrid columns="1">	
                <h:column>
				<p:separator style="width:260px; height:1px;" />
				</h:column>
				<h:column>
				<div style="text-align: right;">

				   <p:commandButton
				    value="Salvar"
				    type="push" 
					action="#{profissionalMBean.alterarSenha}"
					update="#{update}"
					image="ui-icon-disk"
				   />
				   
				   <p:commandButton
				    value="Limpar"
				    type="reset" 
					image="ui-icon-disk"
				   />				   
				</div>
				</h:column>
				</h:panelGrid>
</div>

</cc:implementation>
</html>